home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / FRYANEGG.ZIP / P4DEF_08.INC < prev    next >
Encoding:
Text File  |  1996-08-31  |  6.4 KB  |  170 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // p4def_08.inc - Girl watching spatula boy.
  6. //
  7. // "Paul's Primitive POV People", or "P4".
  8. //
  9. // Created by: Paul T. Dawson
  10. //             ptdawson@voicenet.com
  11. //             http://www.voicenet.com/~ptdawson
  12. //
  13. //------------------------------------------------------------------->
  14. //------------------------------------------------------------------->
  15. //
  16. // Declare the *textures* for everything.
  17.  
  18.         #declare P4_Eye_Texture = texture { pigment { Sapphire_Agate } }
  19.         #declare P4_Glasses_Texture = texture { pigment{SpicyPink} }
  20.  
  21.         #declare P4_Hair_Texture = texture {
  22.                 pigment { Red_Marble scale 0.1 } }
  23.  
  24.         #declare P4_Hat_Texture = texture {
  25.                 pigment { checker NeonBlue, White scale 50 } }
  26.  
  27.         #declare P4_Shirt_Texture = texture {
  28.                 pigment { spiral1 2
  29.                         color_map {
  30.                                 [0.0, 0.5 color rgb <1.0, 1.0, 0.0>
  31.                                           color rgb <0.9, 1.0, 1.0>]
  32.                                 [0.5, 1.0 color rgb <1.0, 0.0, 1.0>
  33.                                           color rgb <1.0, 1.0, 0.0>] }
  34.                         scale 12
  35.                         translate x*12 }
  36.                 normal { bumps 0.5 scale 2 } }
  37.  
  38.         #declare P4_Shoe_Texture = texture { pigment{CornflowerBlue} }
  39.  
  40.         #declare P4_Shorts_Texture = texture {
  41.                 pigment {
  42.                         image_map { gif "shorts-0.gif"
  43.                                 interpolate 2
  44.                                 } // end of image_map
  45.                         } // end of pigment
  46.                 scale 3
  47.                 rotate < 33, 33, 33 >
  48.                 normal { bumps 0.2 scale 2 } }
  49.  
  50.         #declare P4_Skin_Texture = texture { pigment { Tan } }
  51.  
  52. //------------------------------------------------------------------->
  53. //------------------------------------------------------------------->
  54. //
  55. // Now choose *types* of things. You will have to read the directions
  56. // to see what numbers are legal here!
  57.  
  58.         #declare P4_Eye_Type = 1
  59.         #declare P4_Glasses_Type = 0
  60.         #declare P4_Hair_Type = 3
  61.         #declare P4_Hand_Type = 1
  62.         #declare P4_Hat_Type = 2
  63.         #declare P4_Mouth_Type = 2
  64.         #declare P4_Nose_Type = 2
  65.         #declare P4_Shirt_Type = 2
  66.         #declare P4_Shoe_Type = 3
  67.         #declare P4_Shorts_Type = 2
  68.  
  69. //------------------------------------------------------------------->
  70. //------------------------------------------------------------------->
  71. //
  72. // Set the sizes of various things.
  73.  
  74.         #declare P4_Leg_Length = 34
  75.         #declare P4_Neck_Height = 3
  76.         #declare P4_Shirt_Height = 22
  77.         #declare P4_Shorts_Height = 12
  78.  
  79. //------------------------------------------------------------------->
  80. //------------------------------------------------------------------->
  81. //
  82. // Choose the rotation values. Please read the directions!
  83.  
  84.         #declare P4_Hat_Rotate = < 10, -70, 0 >
  85.         #declare P4_Neck_Rotate = < -10, 0, 0 >
  86.         #declare P4_Waist_Rotate = < -10, 0, 0 >
  87.  
  88.         #declare P4_Left_Elbow_Rotate = < 120, -150, 0 >
  89.         #declare P4_Right_Elbow_Rotate = < 120, 150, 0 >
  90.  
  91.         #declare P4_Left_Eyelid_Rotate = -40
  92.         #declare P4_Right_Eyelid_Rotate = -40
  93.  
  94.         #declare P4_Left_Knee_Rotate = < -10, 0, 0 >
  95.         #declare P4_Right_Knee_Rotate = < -10, 0, 0 >
  96.  
  97.         #declare P4_Left_Leg_Rotate = < 10, 0, -10 >
  98.         #declare P4_Right_Leg_Rotate = < 10, 0, 10 >
  99.  
  100.         #declare P4_Left_Shoulder_Rotate = < 50, -50,  30 >
  101.         #declare P4_Right_Shoulder_Rotate = < 30, 50, -30 >
  102.  
  103. //------------------------------------------------------------------->
  104. //------------------------------------------------------------------->
  105. //
  106. // Create the optional "holding" object. This will go into the left
  107. // hand, and move with the hand. This is optional - just comment it
  108. // out if not needed, and set the flag to "false".
  109. //
  110. // The flag is necessary to prevent person #2 from carrying the object
  111. // that you gave to person #1. Set it to true or false.
  112.  
  113.         #declare P4_Holding_Flag = false
  114.  
  115. //------------------------------------------------------------------->
  116. //------------------------------------------------------------------->
  117. //
  118. // Make another optional object - a "bracelet". This also has a flag
  119. // to set on/off. This prevents duplicate bracelets! The bracelet
  120. // should be at <0,0,0>, just like a standard torus.
  121.  
  122.         #declare P4_Bracelet_Flag = true
  123.  
  124. // Here, I got carried away and created a very complex bracelet!
  125.  
  126.         #declare P4_Bracelet_Object = union {
  127.                 #declare A = 0 #while ( A < 360 )
  128.                         sphere { 0, 0.3
  129.                                 translate x * 0.5
  130.                                 rotate z * A * 13
  131.                                 translate x * 3
  132.                                 rotate y * A
  133.                                 } // End of sphere.
  134.                 #declare A = A + 2 #end
  135.                 pigment { MidnightBlue }
  136.                 } // End of union.
  137.  
  138. //------------------------------------------------------------------->
  139. //------------------------------------------------------------------->
  140. //
  141. // Despite my attempts at using "realistic inches" as units, the
  142. // people always seem to end up 8 or 9 feet tall. This variable lets
  143. // you scale the person down to a normal size. Use the P4_TEST.POV
  144. // scene to see how tall your person actually is!
  145.  
  146.         #declare P4_Total_Scale = 80/100
  147.  
  148. //------------------------------------------------------------------->
  149. //------------------------------------------------------------------->
  150. //
  151. // This is the height to move the person up, so his/her feet are on
  152. // the floor. Sorry, but because of bendable legs, this has to be
  153. // adjusted manually (by YOU). 8-)
  154.  
  155.         #declare P4_Y_Adjust = 30
  156.  
  157. //------------------------------------------------------------------->
  158. //------------------------------------------------------------------->
  159. //
  160. // Now call "p4_main.inc" to create the object.
  161.  
  162.         #include "p4_main.inc"
  163.  
  164. //------------------------------------------------------------------->
  165. //------------------------------------------------------------------->
  166. //
  167. // End of this file.
  168.  
  169.  
  170.